package com.d3works.apps.hr.service.timesheet.timer;

import com.d3works.apps.hr.db.TSTimer;
import com.d3works.apps.hr.db.TimesheetLine;
import com.d3works.exception.D3worksException;
import java.math.BigDecimal;

public interface TimesheetTimerService {

  public void pause(TSTimer timer);

  public void stop(TSTimer timer) throws D3worksException;

  public void calculateDuration(TSTimer timer);

  public TimesheetLine generateTimesheetLine(TSTimer timer) throws D3worksException;

  public TSTimer getCurrentTSTimer();

  public BigDecimal convertSecondDurationInHours(long durationInSeconds);
}
